<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/3/24 0024
 * Time: 17:17
 */

namespace Admin\Model;
use Think\Model;

class StuEnrollModel extends Model{
    protected $tableName = "stuenroll";


    // 得到所有学生报名表中的记录
    public function getList() {
        $ret = $this->order('addtime asc')->select();
        return $ret;
    }

    // 根据学号取得学生报名信息
    public function getItem($StuId){
        $condition['stuid'] = $StuId;
        $ret = $this->where($condition)->find();
        return $ret;
    }
}